/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 04 - 16
 * Time: 21:55
 */
//创建方法求两个数的最大值max2，随后再写一个求3个数的最大值的函数max3
public class test1 {
    public static int max2(int a, int b) {
        return a > b ? a : b;
    }
    public static int max3(int a, int b,int c) {
        int d = max2(a, b);
        return c > d ? c : d;
    }
    public static void main(String[] args) {
        int a = 1032;
        int b = 24;
        int c = 7000;
        int e = max3(a, b, c);
        System.out.println(e);
    }

}
